package com.bl.student.dao.repository;

import com.bl.student.dao.model.SchoolEntity;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by yujingyi on 2018/5/6.
 */
public interface SchoolRepository extends PagingAndSortingRepository<SchoolEntity, Integer> {
    List<SchoolEntity> findByCountyId(int countyId);

    List<SchoolEntity> findByCountyIdAndSchoolnameLike(int countyId, String schoolname);

}
